package root.electronclass.electronclass.mvp.entity

data class DateGroup<T>(val time: Long, val data: List<T>) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as DateGroup<*>

        if (time != other.time) return false
        if (data != other.data) return false

        return true
    }

    override fun hashCode(): Int {
        var result = time.hashCode()
        result = 31 * result + data.hashCode()
        return result
    }
}
